[VERSN2]
watermark "Mod made by YochiThMaster333"

// This is required for custom addon generic parts (wheels or spoilers; all NFS games) and/or custom addon vector vinyls (Carbon, ProStreet, Undercover). Without it, custom wheels and vector vinyls might cause many issues to your game (most notably the game crash)
speedreflect auto

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CARSELECT_MANUFACTURER_EAGLE CARSELECT_MANUFACTURER_EAGLE "TalonParts\CARSELECT_MANUFACTURER_EAGLE.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks DEFAULT SECONDARY_LOGO_TALON SECONDARY_LOGO_TALON "TalonParts\SECONDARY_LOGO_TALON.dds"
else
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_EAGLE CARSELECT_MANUFACTURER_EAGLE "TalonParts\CARSELECT_MANUFACTURER_EAGLE.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_TALON SECONDARY_LOGO_TALON "TalonParts\SECONDARY_LOGO_TALON.dds"
end

move_file override relative absolute TalonParts\TALON.ini scripts\UnlimiterData\TALON.ini

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CARNAME_EAGLE_TALON "1998 Eagle Talon TSi AWD"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_TALON_1 "Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_ECLI95_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_SUPRAB_2 "Sunroof"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_TALON_2 "Painted Sunroof"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_SUPRAB_3 "Carbon Sunroof"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_LD2111_4 "J2 Scoop"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_TALON_3 "Painted J2 Scoop"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_LD2111_5 "Carbon J2 Scoop"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_HSVGTR_0 "None"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_1 "Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_1C "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_2 "Grifter"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_3 "Touring"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_4 "Forza"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_5 "Hammerhead"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_6 "Trivo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_ECLI95_2 "APR"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TALON_7 "Flyte"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TRUENO_1 "C-West GT Wing I"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TRUENO_3 "Lex 42"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TRUENO_7 "Drag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_TRUENO_6 "Evo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_MAZFAM_1 "Eyelids"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_MAZFAM_3 "Masked"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_MAZFAM_4 "Reaper"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_TALON_1 "Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_ECLI95_1 "Semi-Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_TALON_2 "Carbon (Black Roof)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_MAZFAM_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_0 "No Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_1 "Type 1 Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_2 "Type 1 Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_3 "Type 2 Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_4 "Type 2 Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_MAZFAM_1 "UNP Extreme Brand"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_GCAB97_1 "UNP Forsage XL"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_GCAB97_2 "UNP Racer JP"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_GCAB97_3 "UNP Racer RX"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_MAZFAM_2 "Sparco Roadster"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_1 "Sparco Milano 2"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_2 "Sparco Milano 3"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_3 "Sparco Torino"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_TALON_1 "Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_ECLI95_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_TALON_2 "Maxphat"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SWHEEL_GCAB97_1 "Momo Red"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SWHEEL_GCAB97_2 "Momo Blue"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SWHEEL_MAZFAM_5 "Sparco Pulsar"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_1 "NFS UC/World Male"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_2 "NFS UC Female"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_3 "NFS World Female"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_4 "NFS PS Driver"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_MAZFAM_1 "Backlash"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_MAZFAM_3 "Ace"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_MAZFAM_6 "Rocket"

// YTM's Rim Pack compatibility for stock rims
if collection_exists GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES
do
else
add_collection GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES
end

bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES "TireTexture"
update_texture GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES 0xE4CEA024 AlphaBlendType TEXBLEND_SRCCOPY
update_texture GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES 0xE4CEA024 AlphaUsageType TEXUSAGE_NONE

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos TALON
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos TALON
else
end

if collection_exists GLOBAL\GLOBALB.LZC Collisions TALON
do
remove_collection GLOBAL\GLOBALB.LZC Collisions TALON
else
end

copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos ECLIPSEGT TALON
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos TALON DefaultBasePaint METAL_L1_COLOR53
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos TALON ManufacturerName EAGLE
copy_collection GLOBAL\GLOBALB.LZC Collisions ECLIPSEGT TALON
import override GLOBAL\GLOBALB.LZC DBModelParts TalonParts\TALON.bin

if directory_exists absolute CARS\TALON
do
else
create_folder absolute CARS\TALON
end

move_file override relative absolute Main\GEOMETRY.BIN CARS\TALON\GEOMETRY.BIN
move_file override relative absolute Main\TEXTURES.BIN CARS\TALON\TEXTURES.BIN

combobox "Standard Resolution (512x)" "High Resolution (1024x)" "Choose vinyls resolution."

"Standard Resolution (512x)"
move_file override relative absolute Vinyls\512.BIN CARS\TALON\VINYLS.BIN

"High Resolution (1024x)"
move_file override relative absolute Vinyls\1024.BIN CARS\TALON\VINYLS.BIN

end
